package com.ultimatech.feign2.service.impl;

import com.ultimatech.cloud.poc.base.model.TestData;
import com.ultimatech.feign2.service.ISchedualServiceHi;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by zhangleping on 2017/10/13.
 */
@Component
public class SchedualServiceHiImpl implements ISchedualServiceHi {
    public String sayHiFromClientOne(@RequestParam(value = "name") String name) {
        return "Sorry, errors! " + name;
    }

    public String whoami(@RequestParam(value = "name") String name) {
        return "Sorry, whoami errors! " + name;
    }

    public TestData test(@RequestParam(value = "name") String name) {
        TestData data = new TestData();
        data.setName("errors !");
        return data;
    }
}
